sched: adjustments to some performance counters
authorDario Faggioli <dario.faggioli@citrix.com>
Wed, 30 Sep 2015 12:46:02 +0000 (14:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 30 Sep 2015 12:46:02 +0000 (14:46 +0200)
commitdc6c3773b23c8ab974ed0a166735be0b2868be18
tree0d39a1119e18cf82606575b82241565768240fd5
parent6c9cf46cefcf2cfb920c14e9ac2c53c371366cf2
sched: adjustments to some performance counters

More specifically:

1) rename vcpu_destroy to vcpu_remove

It seems this have had to be done as part of 7e6b926a
("cpupools: Make interface more consistent"), which
renamed the function but not the counter.

In fact, because of cpupools, vcpus are not only removed
from a scheduler when they are destroyed, but also when
domains move between pools.

Make the related statistics counter reflect that more
properly.

2) rename vcpu_init to vcpu_alloc

As it lives in *_alloc_vdata.

3) add vcpu_insert

matching vcpu_remove, and useful to quickly check
whether the number of insertions and removal matches,
or in general investigare their relationship.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/common/sched_credit.c
xen/common/sched_credit2.c
xen/common/sched_rt.c
xen/include/xen/perfc_defn.h